import java.lang.reflect.Array;
import java.util.Arrays;

public class Demo10 {
    public static void main(String[] args) {
        String str1 = "sdhfskdf";
        String str2 = "djfjdjf";
        char[] a = str1.toCharArray();
        char[] b = str2.toCharArray();
        if(Arrays.equals(a,b))
        {
            System.out.print("两个数组相等\n");
        }
        else
        {
            System.out.print("两个数组不相等\n");
        }
    }
}
